package com.tj.shopping.commons;


import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

public class MyProperties extends Properties{

    private static MyProperties instance = new MyProperties();

    private MyProperties() {

        try {
            InputStream in = this.getClass().getClassLoader().getResourceAsStream("db.properties");
            this.load(in);
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

    public static MyProperties getInstance() {
        return instance;
    }
}